package com.lc.admin.bean;

import com.lc.admin.base.BaseEntity;
import lombok.Data;

import java.util.Date;

@Data
public class CheckIn extends BaseEntity {

    private String checkInCode;  // 入住编号，工具类生成的
    private String title;       //  张三的入住申请
    private Long elderId;
    private String counselor;   // 养老顾问的名字

    private Date checkInTime;   // 后期更新的

    private String reason;  // 入住原因
    private String applicat;   // 申请人名字
    private String deptNo;
    private String applicatId;  // 申请人id
    /**
     * 流程状态
     *  0:申请入住
     *  1:入住评估
     *  2:入住审批
     *  3:入住配置
     *  4:签约办理
     */
    private Integer flowStatus; // 流程状态
    /**
     * 状态（1：申请中，2:已完成,3:已关闭(流程没走完就结束了)）
     */
    private Integer status;   // 审核状态
    private String otherApplyInfo;
    private String reviewInfo;  // 评估信息

    public enum FlowStatus{
        APPLY(0, "入住申请", "养老顾问"),
        REVIEW(1, "入住评估", "护理组主管"),
        APPROVAL(2, "入住审核", "院长"),
        CONFIG(3, "入住配置", "养老顾问"),
        SIGN(4, "签约办理", "法务");
        Integer code;
        String name;
        String role;

        FlowStatus(Integer code, String name, String role){
            this.code = code;
            this.name = name;
            this.role = role;
        }
        public Integer getCode(){
            return this.code;
        }

        public String getName(){
            return this.name;
        }

        public String getRole(){
            return this.role;
        }
    }

    //状态枚举类
    public enum Status{
        APPLICATION(1),
        FINISHED(2),
        CLOSED(3);
        Integer code;
        Status(Integer code){
            this.code = code;
        }
        public Integer getCode(){
            return this.code;
        }
    }

}

